import request from "./request";

export default {
    getInventoryData(params) {
        return request({ url: "/admin/inventory/getInventoryData", method: "get", params });
    },
    deleteBatch(params) {
        return request({
            url: `/admin/inventory/deleteBatch?${new URLSearchParams(params).toString()}`,
            method: "DELETE"
        });
    },
    updateInventory(params) {
        return request({ url: "/admin/inventory/updateInventory", method: "put", data: params });
    },
    // 获取图表数据
    getChartData() {
        return request({ url: "/admin/inventory/getChartData", method: "get" });
    }
};
